<%--
  Created by IntelliJ IDEA.
  User: lucky
  Date: 2020/12/23
  Time: 16:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>学生管理</title>
</head>
<body>
<h3>欢迎进入学生管理界面</h3>

<form action="/spring_StudentsDormitoryManagementSystem/school/xs" method="get">
    <input type="text" name="studentName" placeholder="请输入学生姓名">
    <input type="text" name="className" placeholder="请输入学生班级">
    <input type="text" name="address" placeholder="请输入学生房间">
    <input type="submit" value="查找">
</form>

<table border="1px" cellpadding="10px" cellspacing="0" bgcolor="#ccc" style="text-align: center">
    <tr>
        <th>学生姓名</th>
        <th>性别</th>
        <th>班级</th>
        <th>所在房间</th>
        <th>联系电话</th>
        <th>操作</th>
    </tr>
    <c:forEach items="${requestScope.students}" var="stu">
    <tr>
        <td>${stu.name}</td>
        <td>${stu.gender}</td>
        <td>${stu.myClasses[0].classname}</td>
        <td>${stu.homes[0].address}</td>
        <td>${stu.tel}</td>
        <td>
            <button name="show">明细</button>
            <button name="update">修改</button>
            <button name="delete">删除</button>
        </td>
    </tr>
    </c:forEach>
</table>


</body>
<script>

</script>
</html>
